export default class LastMayday {
	do(cardInfo) {
		this.cardInfo = JSON.parse(JSON.stringify(cardInfo))
		console.log(this.cardInfo.inc)
		return this.palette()
	}
	palette() {
		return ({
			"width": "1080px",
			"height": "1508px",
			"background": "#f8f8f8",
			"views": [{
					"type": "image",
					"url": "https://6a6d-jmwq-1guoblmtb4c68e4c-1304325205.tcb.qcloud.la/cloudbase-cms/upload/post.jpg",
					"css": {
						"width": "1080px",
						"height": "1508px",
						"top": "0px",
						"left": "0px",
						"rotate": "0",
						"borderRadius": "",
						"borderWidth": "",
						"borderColor": "#000000",
						"shadow": "",
						"mode": "scaleToFill"
					}
				},
				{
					"type": "text",
					"text": this.cardInfo.inc,
					"css": {
						"color": "#fff",
						"background": "rgba(0,0,0,0)",
						"width": "200px",
						"height": "142.99999999999997px",
						"top": "1155px",
						"left": "488px",
						"rotate": "0",
						"borderRadius": "",
						"borderWidth": "",
						"borderColor": "",
						"shadow": "",
						"padding": "0px",
						"fontSize": "100px",
						"fontWeight": "normal",
						"maxLines": "2",
						"lineHeight": "144.30000000000004px",
						"textStyle": "fill",
						"textDecoration": "none",
						"fontFamily": "",
						"textAlign": "center"
					}
				},
				{
					"type": "text",
					"text": this.cardInfo.m,
					"css": {
						"color": "#000",
						"background": "rgba(0,0,0,0)",
						"width": "81px",
						"height": "85.79999999999998px",
						"top": "1242px",
						"left": "869px",
						"rotate": "0",
						"borderRadius": "",
						"borderWidth": "",
						"borderColor": "",
						"shadow": "",
						"padding": "0px",
						"fontSize": "60px",
						"fontWeight": "normal",
						"maxLines": "2",
						"lineHeight": "86.58000000000001px",
						"textStyle": "fill",
						"textDecoration": "none",
						"fontFamily": "",
						"textAlign": "left"
					}
				},
				{
					"type": "text",
					"text": this.cardInfo.d,
					"css": {
						"color": "#000",
						"background": "rgba(0,0,0,0)",
						"width": "87.99999999999999px",
						"height": "85.79999999999998px",
						"top": "1153px",
						"left": "760px",
						"rotate": "0",
						"borderRadius": "",
						"borderWidth": "",
						"borderColor": "",
						"shadow": "",
						"padding": "0px",
						"fontSize": "60px",
						"fontWeight": "normal",
						"maxLines": "2",
						"lineHeight": "86.58000000000001px",
						"textStyle": "fill",
						"textDecoration": "none",
						"fontFamily": "",
						"textAlign": "right"
					}
				},
				{
					"type": "image",
					"url": this.cardInfo.post,
					"css": {
						"width": "270px",
						"height": "270px",
						"top": "1028.68px",
						"left": "133px",
						"rotate": "0",
						"borderRadius": "",
						"borderWidth": "",
						"borderColor": "#000000",
						"shadow": "",
						"mode": "scaleToFill"
					}
				}
			]
		});
	}
}
